package bd.com.escenic.flexilunch.model;

/**
 * $URL: http://flexilunch.googlecode.com/svn/trunk/common/src/main/java/bd/com/escenic/flexilunch/model/OrderImpl.java $
 * $Id: OrderImpl.java 14 2009-06-03 09:39:19Z shihab.uddin@gmail.com $
 * $Date: 2009-06-03 09:39:19 +0000 (Wed, 03 Jun 2009) $
 * $Author: shihab.uddin@gmail.com $
 * $Revision: 14 $
 */

import java.util.Date;

/**
 * $Id: OrderImpl.java 14 2009-06-03 09:39:19Z shihab.uddin@gmail.com $.
 *
 * @author <a href="mailto:shihab.uddin@gmail.com">Shihab Uddin</a>
 * @version $Revision: 14 $
 */
public class OrderImpl extends AbstractEntity implements Order {

  private User mUser;
  private Date mDate;
  private Item mItem;
  private int mCount;
  private Status mStatus;
  private double mItemPrice;
  private double mTotalPrice;

  /**
   * {@inheritDoc}
   */
  @Override
  public final Type getType() {
    return Type.ORDER;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public User getUser() {
    return mUser;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setUser(final User pUser) {
    mUser = pUser;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public Date getDate() {
    return mDate;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setDate(final Date pDate) {
    mDate = pDate;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public Item getItem() {
    return mItem;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setItem(final Item pItem) {
    mItem = pItem;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public int getCount() {
    return mCount;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setCount(final int pCount) {
    mCount = pCount;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public Status getStatus() {
    return mStatus;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setStatus(final Status pStatus) {
    mStatus = pStatus;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public double getItemPrice() {
    return mItemPrice;
  }

  public void setItemPrice(final double pItemPrice) {
    mItemPrice = pItemPrice;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public double getTotalPrice() {
    return mTotalPrice;
  }

  public void setTotalPrice(final double pTotalPrice) {
    mTotalPrice = pTotalPrice;
  }
}
